package com.ruoyi.event.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.event.mapper.EventImageListMapper;
import com.ruoyi.event.domain.EventImageList;
import com.ruoyi.event.service.IEventImageListService;

/**
 * 活动图片信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-12
 */
@Service
public class EventImageListServiceImpl implements IEventImageListService 
{
    @Autowired
    private EventImageListMapper eventImageListMapper;

    /**
     * 查询活动图片信息
     * 
     * @param imageid 活动图片信息主键
     * @return 活动图片信息
     */
    @Override
    public EventImageList selectEventImageListByImageid(Long imageid)
    {
        return eventImageListMapper.selectEventImageListByImageid(imageid);
    }

    /**
     * 查询活动图片信息列表
     * 
     * @param eventImageList 活动图片信息
     * @return 活动图片信息
     */
    @Override
    public List<EventImageList> selectEventImageListList(EventImageList eventImageList)
    {
        return eventImageListMapper.selectEventImageListList(eventImageList);
    }

    @Override
    public List<EventImageList> selectEventImageListListNew(Long[] eventids,String imagecategory) {
        return eventImageListMapper.selectEventImageListListNew(eventids,"big_image");
    }

    /**
     * 新增活动图片信息
     * 
     * @param eventImageList 活动图片信息
     * @return 结果
     */
    @Override
    public int insertEventImageList(EventImageList eventImageList)
    {
        return eventImageListMapper.insertEventImageList(eventImageList);
    }

    /**
     * 修改活动图片信息
     * 
     * @param eventImageList 活动图片信息
     * @return 结果
     */
    @Override
    public int updateEventImageList(EventImageList eventImageList)
    {
        return eventImageListMapper.updateEventImageList(eventImageList);
    }

    /**
     * 批量删除活动图片信息
     * 
     * @param imageids 需要删除的活动图片信息主键
     * @return 结果
     */
    @Override
    public int deleteEventImageListByImageids(Long[] imageids)
    {
        return eventImageListMapper.deleteEventImageListByImageids(imageids);
    }

    /**
     * 删除活动图片信息信息
     * 
     * @param imageid 活动图片信息主键
     * @return 结果
     */
    @Override
    public int deleteEventImageListByImageid(Long imageid)
    {
        return eventImageListMapper.deleteEventImageListByImageid(imageid);
    }
}
